import logging,yagmail
def Common():
    logging.basicConfig(filename='./case/giao.txt',level=logging.DEBUG,filemode='w+',format='%(asctime)s->%(thread)d->%(message)s')
def Emall(qq):
    giao=yagmail.SMTP(host='smtp.qq.com',user='2410811597@qq.com',password='sasdfas')
    giao.send(to='23532244@qq.com',subject='giaogiao',contents='giaogiaogiao',attachments=qq.email('./case/text_guanzhu.py'))